package com.zhiyou100.api.map_demo;

import java.util.*;

public class Demo2 {

    public static void main(String[] args) {

        //集合的嵌套使用    List和Map嵌套
        //此时key是一级菜单   value是二级菜单
        // 而二级菜单它也是key-value格式  其key是二级菜单  value是三菜单
        Map<String,Map<String,List<String>>> map = new HashMap<>();
        Map<String,List<String>> map2= new HashMap<>();
        map2.put("男装", Arrays.asList("牛仔裤","短裤"));
        map2.put("女装", Arrays.asList("短裙","长裙","卫衣"));
        map2.put("童装", Arrays.asList("卫衣","套装"));
        map.put("男装/女装/童装",map2);
    }

}
